From: Richard M. Stallman Date: Wed, 14 Sep 1994 18:29:11 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~90323 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fe441eb769a57d80af43e07777f4aedc11b3bad9;p=emacs.git *** empty log message *** --- diff --git a/lisp/progmodes/cpp.el b/lisp/progmodes/cpp.el index d54cc0b51e0..a637385c349 100644 --- a/lisp/progmodes/cpp.el +++ b/lisp/progmodes/cpp.el @@ -30,8 +30,10 @@ ;; ;; '(progn ;; (define-key c-mode-map "\C-c\C-x" 'cpp-parse-buffer) -;; (define-key-after (bar (lookup-key c-mode-map [ menu-bar c ])) -;; [ cpp-parse ] '("Parse Conditionals" . cpp-parse-buffer) 'up))) +;; (define-key-after (lookup-key c-mode-map [ menu-bar c ]) +;; [ cpp-parse ] '("Parse Conditionals" . cpp-parse-buffer) 'up)) + +;; This package is inspired by Jim Coplien's delta editor for SCCS. ;;; Todo: @@ -438,7 +440,8 @@ You can also use the keyboard accelerators indicated like this: [K]ey." (load-file ".cpp.el")) ((file-readable-p "~/.cpp.el") (load-file ".cpp.el"))) - (cpp-edit-reset)) + (if (eq major-mode 'cpp-edit-mode) + (cpp-edit-reset))) (defun cpp-edit-save () "Load cpp configuration."